import { Component } from 'react';
import './ageCtrl.scss';

class ageCtrl extends Component {
    constructor(props) {
        super(props);
        this.props = props;
    }

    render() {
        const { val, inputChange } = this.props;
        return (
            <div className="age-box">
                <span>年龄：{val}</span>
                <div>
                    修改名称<input onInput={inputChange}></input>
                </div>
            </div>
        );
    }
}
export default ageCtrl;
